import request from '@/utils/request'
// 策略搜索
export const getPolicyList = (params) => {
  return request.get('/api/vm-service/policy/search', {
    params
  })
}
// 新增策略
export const addPolicy = (data) => {
  return request.post('/api/vm-service/policy', data)
}
// 删除策略
export const removePolicy = (id) => {
  return request.put('/api/vm-service/policy/' + id)
}
// 修改策略
export const editPolicy = (id, data) => {
  return request.put('/api/vm-service/policy/' + id, data)
}
// 售货机列表
export const getvendingList = (id, params) => {
  return request.get('/api/vm-service/policy/vmList/' + id, {
    params
  })
}
